<?

	$rootPath =  realpath(dirname(__FILE__).'/../').'/';
	include($rootPath.'includes/loader.php');
	
	$options = getopt("d:f:");
	$device = new objDevice($options['d']);
	$device->snmp->load($options['f']);
	$device->save(array('walk'=>$device->snmp->getWalk()));